package Serveur;

import java.rmi.Remote;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;

import Shared.Configuration;

public class ServeurRMI {

	 public static void main(String[] args) throws Exception {

	        System.setProperty("java.rmi.server.hostname", Configuration.RMI_host);

	        GestionJeu jeu = (GestionJeu) UnicastRemoteObject.exportObject((Remote) new GestionJeuImpl().new RMI(), 0);

	        Registry registry = LocateRegistry.createRegistry(Configuration.RMI_port);
	        registry.bind(Configuration.party_manager, jeu);

	        System.out.println("Service enregistre");
	    }


}
